﻿@model Nutrapp.Models.LoginViewModel

@{
    ViewBag.Title = "";
}



<section id="loginForm">

@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl })) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <div class="panel">
            <div class="panel-heading">
                <h3>Log In</h3>
            </div>
            <div class="panel-body">
                <p class="lead">Please log in to access the administration area:</p>
                @using(Html.BeginForm())
                {
                    @Html.ValidationSummary()
                    <div class="form-group">
                        <label>User Name:</label>
                        @Html.TextBoxFor(m => m.UserName, new {@class="form-control" })
                    </div>
                    <div class="form-group">
                        <label>Password:</label>
                        @Html.TextBoxFor(m => m.Password, new {@class="form-control" })
                    </div>
                    <div class="form-group">
                        <label>RememberMe:</label>
                        @Html.CheckBoxFor(m => m.RememberMe)
                    </div>
                    <input type="submit" class="btn btn-primary" value="Log in" />
                }
            </div>
            
        </div>
        
        
    </fieldset>
    <p>
        @Html.ActionLink("Register", "Register") if you don't have an account.
    </p>
}
</section>

<section class="social" id="socialLoginForm">
    <h2>Use another service to log in.</h2>
    @Html.Action("ExternalLoginsList", new { ReturnUrl = ViewBag.ReturnUrl })
</section>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
